﻿@using Eksponent.RazorRocks.Umbraco;
@using umbraco.MacroEngines;
@{
    Layout = "Master.cshtml";

    var node = RazorRocks.CurrentNode;
    var children = node.GetChildrenAsList.Items;    
 }

Subpage layout

@RenderBody()


@if (children.Any())
{
    <div>The child pages are rendered using the templates matching the document types in macroScripts/RazorRocks/List</div>
    <ul>
        @foreach( var child in children ) {
            @child.Render("List")
        }
    </ul>
}
else
{
    @: This page doesn't have child pages
}

